/* mixins */
@import "src/mixins.scss";

// @include DEBUG();
@include useFontSmoothingOnMacOS();
/* wrapper 公共背景 */
.wrapper-bg {
  /* ... */
}

.container {
  width: 100%;
  padding-top: 0.08rem;
  box-sizing: border-box;
  @include flex_dis();
  @include flex(flex-direction, column);
  @include flex(align-items, center);
  position: relative;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    transparent 0.4rem,
    #131428 0.4rem
  ); /* 避免超出底图背景 */

  .container-wrapper {
    width: 100%;
    box-sizing: border-box;
  }
  /* header */
  .container-header {
    height: 1.7rem;
    background-position: 0 0;
    background-size: 100% auto;
    overflow: hidden;
  }
  .container-header + div {
    /* 沉底 自适应上移 */
    margin-top: -1rem;
  }
  /* notice */
  .container-notice {
    width: 6.58rem;
    height: 0.54rem;
    background: #2b2d53;
    border-radius: 0.16rem 0.16rem 0rem 0rem;
    margin: 0 auto;
    text-align: center;
    font-size: 0.24rem;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
    color: #feeebd;
    line-height: 0.54rem;
    margin-bottom: 0.14rem;
    .minutes {
      color: #3dfffe;
    }
  }
  /* main */
  .container-main {
    background-size: 100%;
    background-repeat: repeat-y;

    /* task list */
    .container-main__list {
      @include flex_dis();
      @include flex(flex-direction, column);
      @include flex(align-items, center);
      .list-item {
        width: 6.72rem;
        height: 1.66rem;
        background-size: 100% 100%;
        box-sizing: border-box;
        padding: 0 0.46rem 0 0.48rem;
        @include flex_dis();
        @include flex(justify-content, space-between);
        @include flex(align-items, center);

        /* GIFT */
        .list-item__gift {
          width: 1.32rem;
          height: 1.32rem;
          flex-shrink: 0;
          background-size: 100% 100%;
          position: relative;
          .gift-main {
            width: 100%;
            height: 100%;
            display: block;
          }
          .gift-counts {
            position: absolute;
            right: 0;
            bottom: 0;
            width: 0.66rem;
            height: 0.27rem;
            background-size: 100% 100%;

            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            color: #695212;
            text-align: center;
            font-size: 0; /* wipe inline gap */

            div {
              font-size: 0.18rem; /* 9px 9/12 */
              display: inline-block;
              width: fit-content;
              transform: scale(0.75) translateX(-1px); /* adjustify */
              transform-origin: left center;
              line-height: 0.27rem;
              transform-origin: center;
              white-space: nowrap;
            }
          }
        }
        /* DETAIL */
        .list-item__detail {
          flex: 1;
          margin-left: 0.2rem;
          margin-right: 0.16rem;
          .detail-title {
            font-size: 0.24rem;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            color: #ffffff;
            line-height: 0.34rem;
            margin-bottom: 0.16rem;
          }
          .detail-limit {
            font-size: 0.2rem; /* 10px */
            @include useFontSizeLT12(0.2, left);
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: #ffffff;
            line-height: 0.28rem;
          }
        }
        /* ARROW */
        .list-item__arrow {
          width: 0.98rem;
          height: 1.02rem;
          flex-shrink: 0;
          img {
            width: 100%;
            height: 100%;
            display: block;
          }
        }
      }
    }
    .container-main__list > .list-item:not(:last-of-type) {
      margin-bottom: 0.16rem;
    }
    /* 分割线 */
    .container-main__divider {
      width: 6.4rem;
      height: 0.25rem;
      background-size: 100% 100%;
      background-position: center;
      margin: 0.08rem auto 0.12rem;
    }
  }

  /* footer */
  .container-footer {
    width: 100%;
    height: 1.62rem;
    background-size: 100%;
    background-position: bottom;
    text-align: center;
    font-size: 0.2rem;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #7e7e86;
    line-height: 0.28rem;
    padding-top: 0.22rem;
    box-sizing: border-box;
    margin-top: -1.02rem;

    > p:not(:last-of-type) {
      margin-bottom: 0.06rem;
    }
  }

  .container-tips {
    text-align: center;
    font-size: 0.2rem;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #7e7e86;
    line-height: 0.28rem;
    padding: 0.4rem 0;
    > p {
      @include useFontSizeLT12(0.2);
    }
    > p:not(:last-of-type) {
      margin-bottom: 0.06rem;
    }
  }
}
